package com.sqbr.video.service;

import cn.dev33.satoken.stp.SaTokenInfo;
import com.sqbr.video.domain.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sqbr.video.domain.form.UserPwdLoginForm;
import com.sqbr.video.domain.form.UserRegisterForm;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2024-11-06
 */
public interface IUserService extends IService<User> {

    /**
     * 用户注册功能
     * @param userRegisterForm 用户注册表单
     * @return 加密后的userid
     */
    String register(UserRegisterForm userRegisterForm);

    /**
     * 用户登录
     * @param userPwdLoginForm 用户登录表单
     * @return 有时效性的token
     */
    SaTokenInfo pwdLogin(UserPwdLoginForm userPwdLoginForm);

    /**
     * 用户登出接口
     */
    void exit();
}
